﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using GalaSoft.MvvmLight;
using wp8nop.Common;
using System.Diagnostics;

namespace wp8nop
{
    public partial class SceltaPagamento : PhoneApplicationPage
    {
        public SceltaPagamento()
        {
            InitializeComponent();
        }

        private void Paypal_Click(object sender, RoutedEventArgs e)
        {
            App.TipoPagamento = "paypal";
            NavigationService.Navigate(new Uri("/ConfermaOrdine.xaml", UriKind.Relative));
        }

        private void Bonifico_Click(object sender, RoutedEventArgs e)
        {
            App.TipoPagamento = "bonifico";
            NavigationService.Navigate(new Uri("/ConfermaOrdine.xaml", UriKind.Relative));
        }

        private void Contrassegno_Click(object sender, RoutedEventArgs e)
        {
            App.TipoPagamento = "contrassegno";
            NavigationService.Navigate(new Uri("/ConfermaOrdine.xaml", UriKind.Relative));
        }

        private void CartaCredito_Click(object sender, RoutedEventArgs e)
        {
            App.TipoPagamento = "cartacredito";
            NavigationService.Navigate(new Uri("/ConfermaOrdine.xaml", UriKind.Relative));
        }
    }
}